package practice10;

public class App {

    public static void main(String[] args) {
        // 创建 School 的实例
        School school = new School("实验小学");

        // 通过外部类成员访问内部类成员
        School.Student student1 = school.new Student("张三", 10);
        student1.printInfo();

        // 直接访问内部类成员
        School.Student student2 = new School("实验小学").new Student("李四", 12);
        student2.printInfo();
    }

}
